package com.zlz.m3u8download.bean.entity;

import com.alibaba.fastjson2.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("cache_m3u8")
@Builder
public class CacheM3u8Entity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    private Long parentId;

    private Integer type;

    private String simple;

    private String path;

    private String url;

    private String sourceUrl;

    @JSONField(serialize = false)
    private String sourceContent;

    @JSONField(serialize = false)
    private String content;

    private String md5;

    private Integer state;

    private LocalDateTime createdTime;

    private LocalDateTime lastModifiedTime;

    private String encryptKey;
}